import 'package:fish_redux/fish_redux.dart';

import 'map_action.dart';
import 'map_state.dart';

Reducer<MapState> buildReducer() {
  return asReducer(
    <Object, Reducer<MapState>>{
      MapAction.action: _onAction,
    },
  );
}

MapState _onAction(MapState state, Action action) {
  final MapState newState = state.clone();
  return newState;
}
